Xbasic

DATE_IS_IN_MONTH Function

Syntax

Result_Flag as L = date_is_in_month(D date ,* month )

Result_Flag as L = DATE_IS_IN_MONTH( date as D, month as C )

Result_Flag as L = DATE_IS_IN_MONTH( date as D, month as N )

Arguments

date

A date value.

month

A month expressed as either a character string (e.g. "Feb", "February") or as a number.

Description

True if date is in specified month. Month can be a Character or Numeric value

Discussion

The DATE_IS_IN_MONTH() function determines if a Date value is in a specified Month.

Example

? date_is_in_month({3/15/03}, "February")
= .F.
? date_is_in_month({3/15/03}, 2)
= .F.
? date_is_in_month({3/15/03}, 3)
= .T.
? date_is_in_month({3/15/03}, "Mar")
= .T.

See Also